package com.zh.spring.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 描述：com.zh.spring.controller
 *
 * @author 80002023
 *         2016/12/28.
 * @version 1.0
 * @since 1.8
 */
@Controller
public class HomeCtrl {

    @GetMapping("/")
    public String home(ModelMap map) {
        map.addAttribute("host", "http://xxx.com");
        return "index";
    }

}
